//
//  QDDateDoctorTextCell.m
//  simulateQuickDoctor
//
//  Created by 梁家伟 on 17/3/26.
//  Copyright © 2017年 PipiXia. All rights reserved.
//

#import "QDDateDoctorTextCell.h"

@interface QDDateDoctorTextCell ()
@property(nonatomic,weak)UILabel* label;
@end

@implementation QDDateDoctorTextCell


- (instancetype)initWithFrame:(CGRect)frame{
    
    if(self = [super initWithFrame:frame]){
        [self setupUI];
    }
    return self;
    
}

//- (instancetype)init{
//    
//    if(self = [super init]){
//        [self setupUI];
//    }
//    return self;
//}

- (void)setupUI{
    
    UILabel* label = [UILabel cz_labelWithText:@"文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字" fontSize:15 color:[UIColor whiteColor]];
    [self.contentView addSubview:label];
    label.textAlignment = NSTextAlignmentLeft;
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView);
    }];
    
    _label = label;
}


- (void)setContentStr:(NSString *)contentStr{
    
    _contentStr = contentStr;
    
    _label.text = _contentStr;
    
}

@end
